package com.example.provider02.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "providerNext")
public interface LittleProvider01Client {

    @GetMapping("/api/users/{userId}") // 声明要调用的具体接口路径
    String getUserById(@PathVariable("userId") Long userId); // 声明要调用的方法
}